home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacHack 2000
/
MacHack 2000.toast
/
pc
/
The Hacks
/
Softshoe
/
Lisa's Mac Parts
/
Printing
/
PrintCopyLoop.cp
< prev
next >
Wrap
Text File
|
2000-06-23
|
429b
|
31 lines
// PrintCopyLoop.cp
#ifndef PrintCopyLoop_h
#include "PrintCopyLoop.h"
#endif
#ifndef PrintJob_h
#include "PrintJob.h"
#endif
PrintCopyLoop::PrintCopyLoop( PrintJob& theJob )
: batch( theJob ),
number( 1 ),
stop( theJob.CopyCount() + 1 )
{
if ( Unfinished() )
batch.Start();
}
void PrintCopyLoop::operator++()
{
Assert( Unfinished() );
batch.End();
number++;
if ( Unfinished() )
batch.Start();
}